﻿using Newtonsoft.Json;
using StarsAdmin.Core.DB.Entities;
using StarsAdmin.Core.Enums;

namespace StarsAdmin.Core.DB.SeedData
{
    public class UserSeedData : IEntitySeedData<UserEntity>
    {
        public IEnumerable<UserEntity> HasData()
        {
            var address = JsonConvert.SerializeObject(new[] { "安徽省", "合肥市", "包河区" });
            return [
                new UserEntity{
                    Id=1300000000111,
                    Name = "admin",
                    NickName = "超级管理员",
                    Gender =GenderEnum.Man,
                    Age=18,
                    Address=address,
                    Description = "这是超级管理员",
                    PasswordHash = "8E484E5FCA6F88CABEAB380F74C80C69",
                    PasswordSalt = "a3emc",
                    Email = "1265914749@qq.com",
                    PhoneNumber = "18456417338",
                    IsEnabled = true,},
                 new UserEntity {
                    Id=1300000000112,
                    Name = "system",
                    NickName = "系统管理员",
                    Description = "这是系统管理员",
                    Gender =GenderEnum.Man,
                    Age=18,
                    Address=address,
                    PasswordHash = "8E484E5FCA6F88CABEAB380F74C80C69",
                    PasswordSalt = "a3emc",
                    Email = "1265914749@qq.com",
                    PhoneNumber = "18456417338",
                    IsEnabled = true,},
                 new UserEntity {
                    Id=1300000000113,
                    Name = "user",
                    NickName = "用户管理员",
                    Description = "这是用户管理员",
                    Gender =GenderEnum.Man,
                    Age=18,
                    Address=address,
                    PasswordHash = "8E484E5FCA6F88CABEAB380F74C80C69",
                    PasswordSalt = "a3emc",
                    Email = "1265914749@qq.com",
                    PhoneNumber = "18456417338",
                    IsEnabled = true,},
                ];
        }
    }
}